<?xml version='1.0' encoding='UTF-8' ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:c="http://java.sun.com/jsp/jstl/core">
    <head>

        <title>.::SALUS SIS V. 0.1::.</title>
        <link type="text/css" href="../common/css/redmond/jquery-ui-1.8.23.custom.css" rel="stylesheet" />
        <link type="text/css" href="common/css/global.css" rel="stylesheet" />
        <!--<script src="common/js/jquery-1.4.2.min.js" type="text/javascript"></script>       
        <script type="text/javascript" src="common/js/jquery-1.4.2.min.js"></script>
        <script type="text/javascript" src="common/js/jquery-ui-1.8.4.custom.min.js"></script>-->
       
        <script type="text/javascript" src="../common/js/jquery-1.8.0.min.js"></script>
        <script type="text/javascript" src="../common/js/jquery-ui-1.8.23.custom.min.js"></script>
        <script type="text/javascript" src="../common/js/login.js"></script>
        

    </head>
    <!--<body style="background-color: #FFF; background-image: url('common/img/medico.png')">-->
    <body>
        
        <div id="flogin" class="ui-widget-content">

            <h:form id="LoginForm">
                <br /><br /><br />
                Sistema de Informaci&oacute;n para entidades de Salud
                <br /><br /><br />
                <h2>SIS</h2>
                <br /><br /><br />

                <br />
                <center>
                    <label for="sede">Sede - Centro Salud</label>

                    <input type="hidden" id="idSede" value="" />

                    <h:selectOneMenu style="width: 200px"   class="text ui-widget-content ui-corner-all"  id="listaSedes" value="#{loginBean.idSede}" styleClass="onselect">
                        <f:selectItems value="#{loginBean.listaSede}"/>
                    </h:selectOneMenu>

                    <label for="login">Nombre de Usuario</label>  

                    <h:inputText  class="text ui-widget-content ui-corner-all" id="username" value="#{loginBean.login}" styleClass="inputbox"/>

                    <label for="password">Contrase&ntilde;a</label>

                    <h:inputSecret  class="text ui-widget-content ui-corner-all" id="password" value="#{loginBean.clave}" styleClass="inputbox"/>

                    <label for="entrar"></label>
                    <!--
                        <input type="submit" id="entrar" value="Entrar" class="ui-widget-content ui-corner-all"/>
                    -->

                    <h:commandButton styleClass="submitButton" value="Login" action="#{loginBean.validarUsuario}" class="ui-widget-content ui-corner-all"/>


                    <h:inputHidden   id="band" value="#{loginBean.band}" styleClass="inputbox"/>
                    <input  type="hidden"  id="band1" value="#{loginBean.band}" styleClass="inputbox"/>

                    <div id="errmsg" style="color: orange;display:none">
                        <!--<br />-->
                        Oops, el Usuario no existe...!
                    </div>
                </center>
            </h:form>
        </div>
    </body>
</html>